<?php
class Catproduct_model extends CI_Model
{
   function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
	
   function getproducts($catId)
    {   
	   $sql = "Select * from tbl_product where cat_id=$catId";
		$CI = get_instance();
		$query =$CI->db->query($sql);
	   return $query->result();
	}
}
?>